home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
graphic
/
eed24lib.zip
/
TTL1LS.LIB
< prev
next >
Wrap
Text File
|
1992-06-24
|
18KB
|
1,728 lines
EEDRAW-LIB Version 1.0
#
# 74 LS 2 TTL 2 library - first part
#
# Gershon Elber Nov 89
#
#
# Definitions:
#
# First line MUST hold the keywords EDRAW-LIB. This is used to find non
# library files before an attempt is made to load them. Version is currently
# ignored but may be used in case newer format is introduced.
#
# Lines start with '#' are ignored (comments).
#
# Every part name must start with DEF and end with DEFEND keywords. the DEF
# line looks like:
#
# DEF Name Prefix #Pins TextInside DrawNum #Units #PinsPerUnit
#
# Were 1. Name is the Part name, i.e. "74LS00". If Name is prefixed with ~
# (for example "~74LS00") then the name is not drawn.
# 2. Prefix is the prefix to be used in chip name (IC, R, C etc.). If
# prefix is "~", then no prefix is drawn.
# 3. #Pins is the same as number of entries in PINS 2 (or L 2 entries in
# DRAW), i.e 14 for 74LS00.
# 4. TextInside is 0 if pin text is to be put outside as well (as the
# pin numbers), otherwise inside. You may put any positive
# integer there to scale the distance inside. 10 is a good start.
# 5. DrawNum is 1 if pin numbers are to be drawn, 0 otherwise.
# 6. #Units holds number of multiple entries. For example 74LS00 has
# 4 units. For no multiple units put 0 here.
# 7. #PinsPerUnit holds number of entries for one unit if more than
# one unit per part. If #Units is 0, it is ignored.
#
# The part definition itself contains the following blocks, in any order:
#
# 1. DRAW/ENDDRAW - defines how to draw the part. This block is optional, and
# a simple box with half the pins on each side is drawn if this block is
# not defined. The following commands are supported:
# A 2 2 x y r t1 t2 (Define ARC at x, y, radius r, anges t1 to t2)
# P 2 n x y x y x y... {F} (Define a POLYLINE of (any) length n)
# C x y r (Define a CIRCLE at x, y, radius r)
# S 2 x1 y1 x2 y2 (Define a square)
# T x y h str (Define a text string at x, y (see below))
# L 2 x1 y1 x2 y2 {I} (Define connection line to part - see PINS)
#
# Notes:
# A. a text string with be drawn horizontally if h is 1, veritcally if 0.
# Also the str string '~' characters will be replaced by spaces, or this
# provides a mechanism to have spaces in the string.
# B. If the polyline (P) is postfixed by a F, the polyline defines a
# closed shape that will be filled. The first point of the polyline must
# be identical to last oe in this case.
# C. If the line (L) is postfixed by an I, this line is assumed to define
# negative logic, and a small circle will be drawn to express that.
# D. Points will be snapped to lines (L) only, and only to the second point
# of it. The first point must be the one connected to the object defined
# while the second provides the connection to the rest of the world.
# E. Arcs (A) should not exceed 180 degrees.
#
# 2. PINS/ENDPINS 2 - defines the names (strings) associated with each pin.
# The block holds #Pins lines each hold the string defines that pin. This
# order must be the same as define in the DRAW/ENDDRAW as L 2 commands
# (if DRAW/ENDDRAW block is defined), from pin 1 to #Pins. Empty lines
# are allowed are defined with one '~' on them. Not sign for X is defined
# by ~X.
# 3. MULTI/ENDMULTI - This block must exists iff #unit != 0. Each line in this
# block holds the pin numbers of a unit. Number of lines is equal to number
# units in part.
#
# Notes:
#
# 1. All drawings are scaled up by 2 to make sure all pins are in the
# correct alignment.
#
#
# 74LS00
#
DEF 74LS00 IC 14 0 1 4 3
DRAW
A 2 0 0 5 -90 90
P 2 4 0 5 -10 5 -10 -5 0 -5
L 2 -10 3 -17 3
L 2 -10 -3 -17 -3
L 2 5 0 14 0 I
ENDDRAW
PINS
~
~
~
~
~
~
Gnd
~
~
~
~
~
~
Vcc
ENDPINS
MULTI
1 2 3
4 5 6
9 10 8
12 13 11
ENDMULTI
ENDDEF
#
# 74LS01
#
DEF 74LS01 IC 14 0 1 4 3
DRAW
A 2 0 0 5 -90 90
P 2 4 0 5 -10 5 -10 -5 0 -5
L 2 5 0 14 0 I
L 2 -10 3 -17 3
L 2 -10 -3 -17 -3
ENDDRAW
PINS
~
~
~
~
~
~
Gnd
~
~
~
~
~
~
Vcc
ENDPINS
MULTI
1 2 3
4 5 6
10 9 8
13 12 11
ENDMULTI
ENDDEF
#
# 74LS02
#
DEF 74LS02 IC 14 0 1 4 3
DRAW
A 2 0 0 5 -90 90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